<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">
    <h:head>
        <title>IGNORED</title>
    </h:head>
    <h:body>
            <h:form>
                <div style="margin-left: 600px;">
                    <rich:message/>
                </div>
                <center>
                    <rich:graphValidator value="#{registerBean}" id="gv">
                        <h:panelGrid id="register" columns="3">
                            <h:outputLabel for="userName" value="用户名："/> 
                            <h:inputText id="userName" value="#{registerBean.userName}" required="false">
                                <rich:validator/>
                            </h:inputText>
                            <rich:message for="userName"/>

                            <h:outputLabel for="pwd" value="密码：" />
                            <h:inputSecret id="pwd" value="#{registerBean.pwd}" required="false"/>
                            <rich:message for="pwd"/>

                            <h:outputLabel for="pwd_c" value="确认密码：" />
                            <h:inputSecret id="pwd_c" value="#{registerBean.pwd_c}" required="false"/>
                            <rich:message for="pwd_c"/>

                            <h:outputLabel for="email" value="邮箱："/> 
                            <h:inputText id="email" value="#{registerBean.email}" required="false"/>
                            <rich:message for="email"/>

                        </h:panelGrid>
                        <h:selectBooleanCheckbox value="#{registerBean.agreed}"/>同意<a>《用户条款》</a><br/>

                        <h:commandButton value="注册" action="#{registerBean.register}"/>
                    </rich:graphValidator>
                </center>
            </h:form>
    </h:body>
</html>